import { Customer, Material } from "./basic";
import { ReqPage } from "./index";

export namespace Warehouse {
  // 来料单查询参数
  export interface SearchParams extends ReqPage {
    warehouse: string;
    sourceType: string;
    customerId: string;
    materialId: string;
    batchCode: string;
  }

  export interface Search extends Customer.c_SearchProp, Material.M_resSoSearch {
    customerObj: Customer.SearchProp;
    materialObj: Material.SearchProp;
    acceptTime: string;
    customerId: number;
    batchCode: string;
    dotime: string;
    douser: string;
    flagAccept: number;
    flagLock: number;
    flagRiveIn: number;
    flagSend: number;
    id: number;
    importId: number;
    inTime: string;
    locationId: number;
    locationInfo: string;
    materialId: number;
    netWeight: number;
    outId: number;
    outTime: string;
    outType: string;
    packageNum: number;
    packageType: string;
    remark: string;
    sendTime: string;
    sourceId: number;
    sourceType: string;
    status: number;
    uptime: string;
    warehouse: string;
  }

  //调拨仓库
  export interface ReqAllotProps {
    id: string;
    targetWarehouse: string;
    remark: string;
    originWarehouse?: string;
    originLocationInfo?: string;
  }

  //转移位置
  export interface ReqMoveProps {
    id: string;
    targetLocationId: string;
    remark: string;
    originWarehouse?: string;
    originLocationInfo?: string;
  }
}
